import Cookie from "cookie_js";

const token = "token";
const refreshtoken = "refreshtoken";
const username = "username";

export function setToken(value) {
  return Cookie.set(token, value);
}

export function getToken() {
  return Cookie.get(token);
}

export function removeToken() {
  return Cookie.remove(token);
}

export function setRefreshToken(value) {
  return Cookie.set(refreshtoken, value);
}

export function getRefreshToken() {
  return Cookie.get(refreshtoken);
}

export function removeRefreshToken() {
  return Cookie.remove(refreshtoken);
}

export function setUsername(value) {
  return Cookie.set(username, value);
}

export function getUsername() {
  return Cookie.get(username);
}

export function removeUsername() {
  return Cookie.remove(username);
}
